package com.logistics.common;

/**
 * 常量类
 */
public class Constants {
    
    /**
     * 平台租户ID（用于平台管理员）
     */
    public static final Long PLATFORM_TENANT_ID = 0L;
    
    /**
     * 用户角色
     */
    public static class Role {
        public static final String PLATFORM_ADMIN = "PLATFORM_ADMIN";  // 平台管理员
        public static final String SUPER_ADMIN = "SUPER_ADMIN";        // 超级管理员（租户最高权限）
        public static final String SITE_ADMIN = "SITE_ADMIN";          // 站点管理员
    }
    
    /**
     * 订单状态
     */
    public static class OrderStatus {
        public static final String RECEIVED = "RECEIVED";          // 已收货（待装车）
        public static final String LOADED = "LOADED";              // 已装车
        public static final String TRANSPORTING = "TRANSPORTING";  // 运输中
        public static final String ARRIVED = "ARRIVED";            // 到货
        public static final String DELIVERING = "DELIVERING";      // 派送中/待取货
        public static final String COMPLETED = "COMPLETED";        // 已完成
        public static final String CANCELLED = "CANCELLED";        // 已取消
    }
    
    /**
     * 订阅状态
     */
    public static class SubscriptionStatus {
        public static final String TRIAL = "TRIAL";       // 试用中
        public static final String NORMAL = "NORMAL";     // 正常
        public static final String EXPIRED = "EXPIRED";   // 已过期
        public static final String DISABLED = "DISABLED"; // 已停用
    }
    
    /**
     * 司机状态
     */
    public static class DriverStatus {
        public static final String IDLE = "IDLE";           // 空闲
        public static final String PICKING = "PICKING";     // 收货中（被收货开票订单分配）
        public static final String DELIVERING = "DELIVERING"; // 送货中（被运单分配送货）
    }
}

